<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of ASCII2GIS_GUI</title>
  <meta name="keywords" content="ASCII2GIS_GUI">
  <meta name="description" content="ASCII2GIS_GUI M-file for ASCII2GIS_GUI.fig">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- ../menu.html trunk --><!-- menu.html tools -->
<h1>ASCII2GIS_GUI
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>ASCII2GIS_GUI M-file for ASCII2GIS_GUI.fig</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function varargout = ASCII2GIS_GUI(varargin) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment"> ASCII2GIS_GUI M-file for ASCII2GIS_GUI.fig
      ASCII2GIS_GUI, by itself, creates a new ASCII2GIS_GUI or raises the existing
      singleton*.

      H = ASCII2GIS_GUI returns the handle to a new ASCII2GIS_GUI or the handle to
      the existing singleton*.

      ASCII2GIS_GUI('CALLBACK',hObject,eventData,handles,...) calls the local
      function named CALLBACK in ASCII2GIS_GUI.M with the given input arguments.

      ASCII2GIS_GUI('Property','Value',...) creates a new ASCII2GIS_GUI or raises the
      existing singleton*.  Starting from the left, property value pairs are
      applied to the GUI before ASCII2GIS_GUI_OpeningFcn gets called.  An
      unrecognized property name or invalid value makes property application
      stop.  All inputs are passed to ASCII2GIS_GUI_OpeningFcn via varargin.

      *See GUI Options on GUIDE's Tools menu.  Choose &quot;GUI allows only one
      instance to run (singleton)&quot;.

 See also: GUIDE, GUIDATA, GUIHANDLES</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
<li><a href="ASCII2GIS.html" class="code" title="function [VelOut,goodrows] = ASCII2GIS(drange,ref,tav)">ASCII2GIS</a>	WinRiver ASCII to GIS Import Format</li></ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
<!-- crossreference -->

<h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<ul style="list-style-image:url(../../matlabicon.gif)">
<li><a href="#_sub1" class="code">function ASCII2GIS_GUI_OpeningFcn(hObject, eventdata, handles, varargin)</a></li><li><a href="#_sub2" class="code">function varargout = ASCII2GIS_GUI_OutputFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub3" class="code">function RunButton_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub4" class="code">function FullDepthcheckbox_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub5" class="code">function DFSlow_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub6" class="code">function DFSlow_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub7" class="code">function DFShi_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub8" class="code">function DFShi_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub9" class="code">function HABlim_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub10" class="code">function HABlim_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub11" class="code">function uipanel1_SelectionChangeFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub12" class="code">function uipanel3_SelectionChangeFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub13" class="code">function PlotDAVcheckbox_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub14" class="code">function AscaleEditBox_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub15" class="code">function AscaleEditBox_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub16" class="code">function pushbutton2_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub17" class="code">function PlotDAVcheckbox_DeleteFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub18" class="code">function PlotDAVButton_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub19" class="code">function edit5_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub20" class="code">function edit5_CreateFcn(hObject, eventdata, handles)</a></li><li><a href="#_sub21" class="code">function tav_editbox_Callback(hObject, eventdata, handles)</a></li><li><a href="#_sub22" class="code">function tav_editbox_CreateFcn(hObject, eventdata, handles)</a></li></ul>

<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function varargout = ASCII2GIS_GUI(varargin)</a>
0002 <span class="comment">% ASCII2GIS_GUI M-file for ASCII2GIS_GUI.fig</span>
0003 <span class="comment">%      ASCII2GIS_GUI, by itself, creates a new ASCII2GIS_GUI or raises the existing</span>
0004 <span class="comment">%      singleton*.</span>
0005 <span class="comment">%</span>
0006 <span class="comment">%      H = ASCII2GIS_GUI returns the handle to a new ASCII2GIS_GUI or the handle to</span>
0007 <span class="comment">%      the existing singleton*.</span>
0008 <span class="comment">%</span>
0009 <span class="comment">%      ASCII2GIS_GUI('CALLBACK',hObject,eventData,handles,...) calls the local</span>
0010 <span class="comment">%      function named CALLBACK in ASCII2GIS_GUI.M with the given input arguments.</span>
0011 <span class="comment">%</span>
0012 <span class="comment">%      ASCII2GIS_GUI('Property','Value',...) creates a new ASCII2GIS_GUI or raises the</span>
0013 <span class="comment">%      existing singleton*.  Starting from the left, property value pairs are</span>
0014 <span class="comment">%      applied to the GUI before ASCII2GIS_GUI_OpeningFcn gets called.  An</span>
0015 <span class="comment">%      unrecognized property name or invalid value makes property application</span>
0016 <span class="comment">%      stop.  All inputs are passed to ASCII2GIS_GUI_OpeningFcn via varargin.</span>
0017 <span class="comment">%</span>
0018 <span class="comment">%      *See GUI Options on GUIDE's Tools menu.  Choose &quot;GUI allows only one</span>
0019 <span class="comment">%      instance to run (singleton)&quot;.</span>
0020 <span class="comment">%</span>
0021 <span class="comment">% See also: GUIDE, GUIDATA, GUIHANDLES</span>
0022 
0023 <span class="comment">% Edit the above text to modify the response to help ASCII2GIS_GUI</span>
0024 
0025 <span class="comment">% Last Modified by GUIDE v2.5 20-Mar-2012 09:55:20</span>
0026 
0027 <span class="comment">% Begin initialization code - DO NOT EDIT</span>
0028 gui_Singleton = 1;
0029 gui_State = struct(<span class="string">'gui_Name'</span>,       mfilename, <span class="keyword">...</span>
0030                    <span class="string">'gui_Singleton'</span>,  gui_Singleton, <span class="keyword">...</span>
0031                    <span class="string">'gui_OpeningFcn'</span>, @<a href="#_sub1" class="code" title="subfunction ASCII2GIS_GUI_OpeningFcn(hObject, eventdata, handles, varargin)">ASCII2GIS_GUI_OpeningFcn</a>, <span class="keyword">...</span>
0032                    <span class="string">'gui_OutputFcn'</span>,  @<a href="#_sub2" class="code" title="subfunction varargout = ASCII2GIS_GUI_OutputFcn(hObject, eventdata, handles)">ASCII2GIS_GUI_OutputFcn</a>, <span class="keyword">...</span>
0033                    <span class="string">'gui_LayoutFcn'</span>,  [] , <span class="keyword">...</span>
0034                    <span class="string">'gui_Callback'</span>,   []);
0035 <span class="keyword">if</span> nargin &amp;&amp; ischar(varargin{1})
0036     gui_State.gui_Callback = str2func(varargin{1});
0037 <span class="keyword">end</span>
0038 
0039 <span class="keyword">if</span> nargout
0040     [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
0041 <span class="keyword">else</span>
0042     gui_mainfcn(gui_State, varargin{:});
0043 <span class="keyword">end</span>
0044 <span class="comment">% End initialization code - DO NOT EDIT</span>
0045 
0046 
0047 <span class="comment">% --- Executes just before ASCII2GIS_GUI is made visible.</span>
0048 <a name="_sub1" href="#_subfunctions" class="code">function ASCII2GIS_GUI_OpeningFcn(hObject, eventdata, handles, varargin)</a>
0049 <span class="comment">% This function has no output args, see OutputFcn.</span>
0050 <span class="comment">% hObject    handle to figure</span>
0051 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0052 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0053 <span class="comment">% varargin   command line arguments to ASCII2GIS_GUI (see VARARGIN)</span>
0054 
0055 <span class="comment">% Choose default command line output for ASCII2GIS_GUI</span>
0056 handles.output = hObject;
0057 
0058 <span class="comment">% Update handles structure</span>
0059 guidata(hObject, handles);
0060 
0061 <span class="comment">% Ensure path to utils &amp; docs is available</span>
0062 <span class="comment">% ----------------------------------------</span>
0063 filesep = <span class="string">'\'</span>; <span class="comment">% windows</span>
0064 utilspath = [pwd filesep <span class="string">'utils'</span>];
0065 docspath  = [pwd filesep <span class="string">'docs'</span>];
0066 toolspath = [pwd filesep <span class="string">'tools'</span>];
0067 addpath(utilspath,docspath,toolspath)
0068 
0069 <span class="comment">% UIWAIT makes ASCII2GIS_GUI wait for user response (see UIRESUME)</span>
0070 <span class="comment">% uiwait(handles.figure1);</span>
0071 
0072 
0073 <span class="comment">% --- Outputs from this function are returned to the command line.</span>
0074 <a name="_sub2" href="#_subfunctions" class="code">function varargout = ASCII2GIS_GUI_OutputFcn(hObject, eventdata, handles) </a>
0075 <span class="comment">% varargout  cell array for returning output args (see VARARGOUT);</span>
0076 <span class="comment">% hObject    handle to figure</span>
0077 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0078 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0079 
0080 <span class="comment">% Get default command line output from handles structure</span>
0081 varargout{1} = handles.output;
0082 
0083 <span class="comment">%Initialize variables</span>
0084 handles.dfslow       = 0;
0085 handles.dfshi        = 1;
0086 handles.hablim       = 1;
0087 handles.DFSfull      = 0;
0088 handles.units        = 1;
0089 handles.ref          = 1;
0090 handles.VelOut       = [];
0091 handles.goodrows     = [];
0092 handles.Ascale       = 1.0;
0093 handles.Vspace       = 1;
0094 handles.TAV          = [];
0095 
0096 guidata(hObject, handles);
0097 
0098 
0099 <span class="comment">% --- Executes on button press in RunButton.</span>
0100 <a name="_sub3" href="#_subfunctions" class="code">function RunButton_Callback(hObject, eventdata, handles)</a>
0101 <span class="comment">% hObject    handle to RunButton (see GCBO)</span>
0102 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0103 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0104 <span class="keyword">if</span> handles.ref 
0105     vref = <span class="string">'dfs'</span>;
0106     disp(<span class="string">'Reference is set to DFS'</span>)
0107     <span class="keyword">if</span> handles.DFSfull
0108         drange = [];
0109         disp(<span class="string">'DFS Range set to Full Depth'</span> )
0110     <span class="keyword">else</span>
0111         <span class="keyword">if</span> handles.units 
0112             drange = [handles.dfslow handles.dfshi];
0113             disp([<span class="string">'DFS Range = '</span> num2str(drange(1)) <span class="string">' to '</span> num2str(drange(2)) <span class="string">' m'</span>])
0114         <span class="keyword">else</span> <span class="comment">%units = Feet</span>
0115             drange = [handles.dfslow handles.dfshi]./3.281;  <span class="comment">% Convert to meters</span>
0116             disp([<span class="string">'DFS Range = '</span> num2str(drange(1)*3.281) <span class="string">' to '</span> num2str(drange(2)*3.281) <span class="string">' ft'</span>])
0117         <span class="keyword">end</span>
0118     <span class="keyword">end</span>
0119 <span class="keyword">else</span>
0120     vref = <span class="string">'hab'</span>;
0121     disp(<span class="string">'Reference is set to HAB'</span>)
0122     <span class="keyword">if</span> handles.units 
0123         drange = handles.hablim;
0124         disp([<span class="string">'HAB Limit = '</span> num2str(drange) <span class="string">' m'</span>])
0125     <span class="keyword">else</span> <span class="comment">%units = Feet</span>
0126         drange = handles.hablim./3.281;  <span class="comment">% Convert to meters</span>
0127         disp([<span class="string">'HAB Limit = '</span> num2str(drange*3.281) <span class="string">' ft'</span>])
0128     <span class="keyword">end</span>
0129 <span class="keyword">end</span>
0130  
0131 [handles.VelOut,handles.goodrows] = <a href="ASCII2GIS.html" class="code" title="function [VelOut,goodrows] = ASCII2GIS(drange,ref,tav)">ASCII2GIS</a>(drange,vref,handles.TAV);
0132 guidata(hObject,handles)
0133 
0134 <span class="comment">% --- Executes on button press in FullDepthcheckbox.</span>
0135 <a name="_sub4" href="#_subfunctions" class="code">function FullDepthcheckbox_Callback(hObject, eventdata, handles)</a>
0136 <span class="comment">% hObject    handle to FullDepthcheckbox (see GCBO)</span>
0137 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0138 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0139 
0140 <span class="comment">% Hint: get(hObject,'Value') returns toggle state of FullDepthcheckbox</span>
0141 handles.DFSfull = get(hObject,<span class="string">'Value'</span>);
0142 guidata(hObject,handles)
0143 
0144 
0145 
0146 
0147 <a name="_sub5" href="#_subfunctions" class="code">function DFSlow_Callback(hObject, eventdata, handles)</a>
0148 <span class="comment">% hObject    handle to DFSlow (see GCBO)</span>
0149 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0150 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0151 
0152 <span class="comment">% Hints: get(hObject,'String') returns contents of DFSlow as text</span>
0153 <span class="comment">%        str2double(get(hObject,'String')) returns contents of DFSlow as a double</span>
0154 handles.dfslow = str2double(get(hObject,<span class="string">'String'</span>));
0155 guidata(hObject,handles)
0156 
0157 
0158 
0159 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0160 <a name="_sub6" href="#_subfunctions" class="code">function DFSlow_CreateFcn(hObject, eventdata, handles)</a>
0161 <span class="comment">% hObject    handle to DFSlow (see GCBO)</span>
0162 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0163 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0164 
0165 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0166 <span class="comment">%       See ISPC and COMPUTER.</span>
0167 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0168     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0169 <span class="keyword">end</span>
0170 
0171 
0172 
0173 <a name="_sub7" href="#_subfunctions" class="code">function DFShi_Callback(hObject, eventdata, handles)</a>
0174 <span class="comment">% hObject    handle to DFShi (see GCBO)</span>
0175 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0176 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0177 
0178 <span class="comment">% Hints: get(hObject,'String') returns contents of DFShi as text</span>
0179 <span class="comment">%        str2double(get(hObject,'String')) returns contents of DFShi as a double</span>
0180 handles.dfshi = str2double(get(hObject,<span class="string">'String'</span>));
0181 guidata(hObject,handles)
0182 
0183 
0184 
0185 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0186 <a name="_sub8" href="#_subfunctions" class="code">function DFShi_CreateFcn(hObject, eventdata, handles)</a>
0187 <span class="comment">% hObject    handle to DFShi (see GCBO)</span>
0188 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0189 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0190 
0191 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0192 <span class="comment">%       See ISPC and COMPUTER.</span>
0193 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0194     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0195 <span class="keyword">end</span>
0196 
0197 
0198 
0199 <a name="_sub9" href="#_subfunctions" class="code">function HABlim_Callback(hObject, eventdata, handles)</a>
0200 <span class="comment">% hObject    handle to HABlim (see GCBO)</span>
0201 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0202 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0203 
0204 <span class="comment">% Hints: get(hObject,'String') returns contents of HABlim as text</span>
0205 <span class="comment">%        str2double(get(hObject,'String')) returns contents of HABlim as a double</span>
0206 handles.hablim = str2double(get(hObject,<span class="string">'String'</span>));
0207 guidata(hObject,handles)
0208 
0209 
0210 
0211 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0212 <a name="_sub10" href="#_subfunctions" class="code">function HABlim_CreateFcn(hObject, eventdata, handles)</a>
0213 <span class="comment">% hObject    handle to HABlim (see GCBO)</span>
0214 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0215 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0216 
0217 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0218 <span class="comment">%       See ISPC and COMPUTER.</span>
0219 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0220     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0221 <span class="keyword">end</span>
0222 
0223 
0224 <span class="comment">% --- Executes when selected object is changed in uipanel1.</span>
0225 <a name="_sub11" href="#_subfunctions" class="code">function uipanel1_SelectionChangeFcn(hObject, eventdata, handles)</a>
0226 <span class="comment">% hObject    handle to the selected object in uipanel1</span>
0227 <span class="comment">% eventdata  structure with the following fields (see UIBUTTONGROUP)</span>
0228 <span class="comment">%    EventName: string 'SelectionChanged' (read only)</span>
0229 <span class="comment">%    OldValue: handle of the previously selected object or empty if none was selected</span>
0230 <span class="comment">%    NewValue: handle of the currently selected object</span>
0231 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0232 <span class="keyword">switch</span> get(eventdata.NewValue,<span class="string">'Tag'</span>) <span class="comment">% Get Tag of selected object.</span>
0233     <span class="keyword">case</span> <span class="string">'DFSradiobutton'</span>
0234         handles.ref = 1;
0235     <span class="keyword">case</span> <span class="string">'HABradiobutton'</span>
0236         handles.ref = 0;
0237     <span class="comment">% Continue with more cases as necessary.</span>
0238     <span class="keyword">otherwise</span>
0239         handles.ref = 1;
0240 <span class="keyword">end</span>
0241 guidata(hObject,handles)
0242 
0243 
0244 
0245 <span class="comment">% --- Executes when selected object is changed in uipanel3.</span>
0246 <a name="_sub12" href="#_subfunctions" class="code">function uipanel3_SelectionChangeFcn(hObject, eventdata, handles)</a>
0247 <span class="comment">% hObject    handle to the selected object in uipanel3</span>
0248 <span class="comment">% eventdata  structure with the following fields (see UIBUTTONGROUP)</span>
0249 <span class="comment">%    EventName: string 'SelectionChanged' (read only)</span>
0250 <span class="comment">%    OldValue: handle of the previously selected object or empty if none was selected</span>
0251 <span class="comment">%    NewValue: handle of the currently selected object</span>
0252 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0253 <span class="keyword">switch</span> get(eventdata.NewValue,<span class="string">'Tag'</span>) <span class="comment">% Get Tag of selected object.</span>
0254     <span class="keyword">case</span> <span class="string">'Feetradiobutton'</span>
0255         handles.units = 0;
0256     <span class="keyword">case</span> <span class="string">'Metersradiobutton'</span>
0257         handles.units = 1;
0258     <span class="comment">% Continue with more cases as necessary.</span>
0259     <span class="keyword">otherwise</span>
0260         handles.units = 1;
0261 <span class="keyword">end</span>
0262 guidata(hObject,handles)
0263 
0264 
0265 <span class="comment">% --- Executes on button press in PlotDAVcheckbox.</span>
0266 <a name="_sub13" href="#_subfunctions" class="code">function PlotDAVcheckbox_Callback(hObject, eventdata, handles)</a>
0267 <span class="comment">% hObject    handle to PlotDAVcheckbox (see GCBO)</span>
0268 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0269 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0270 
0271 <span class="comment">% Hint: get(hObject,'Value') returns toggle state of PlotDAVcheckbox</span>
0272 
0273 handles.plotDAV = get(hObject,<span class="string">'Value'</span>);
0274 guidata(hObject,handles)
0275 
0276 
0277 <a name="_sub14" href="#_subfunctions" class="code">function AscaleEditBox_Callback(hObject, eventdata, handles)</a>
0278 <span class="comment">% hObject    handle to AscaleEditBox (see GCBO)</span>
0279 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0280 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0281 
0282 <span class="comment">% Hints: get(hObject,'String') returns contents of AscaleEditBox as text</span>
0283 <span class="comment">%        str2double(get(hObject,'String')) returns contents of AscaleEditBox as a double</span>
0284 
0285 handles.Ascale = str2double(get(hObject,<span class="string">'String'</span>));
0286 guidata(hObject,handles)
0287 
0288 
0289 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0290 <a name="_sub15" href="#_subfunctions" class="code">function AscaleEditBox_CreateFcn(hObject, eventdata, handles)</a>
0291 <span class="comment">% hObject    handle to AscaleEditBox (see GCBO)</span>
0292 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0293 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0294 
0295 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0296 <span class="comment">%       See ISPC and COMPUTER.</span>
0297 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0298     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0299 <span class="keyword">end</span>
0300 
0301 
0302 <span class="comment">% --- Executes on button press in pushbutton2.</span>
0303 <a name="_sub16" href="#_subfunctions" class="code">function pushbutton2_Callback(hObject, eventdata, handles)</a>
0304 <span class="comment">% hObject    handle to pushbutton2 (see GCBO)</span>
0305 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0306 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0307 
0308 <span class="comment">%overlay DOQQ</span>
0309 msgbox(<span class="string">'Adding Background'</span>,<span class="string">'VMT Status'</span>,<span class="string">'help'</span>,<span class="string">'replace'</span>);
0310 VMT_OverlayDOQQ
0311 msgbox(<span class="string">'Replotting Complete'</span>,<span class="string">'VMT Status'</span>,<span class="string">'help'</span>,<span class="string">'replace'</span>);
0312 
0313 
0314 <span class="comment">% --- Executes during object deletion, before destroying properties.</span>
0315 <a name="_sub17" href="#_subfunctions" class="code">function PlotDAVcheckbox_DeleteFcn(hObject, eventdata, handles)</a>
0316 <span class="comment">% hObject    handle to PlotDAVcheckbox (see GCBO)</span>
0317 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0318 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0319 
0320 
0321 <span class="comment">% --- Executes on button press in PlotDAVButton.</span>
0322 <a name="_sub18" href="#_subfunctions" class="code">function PlotDAVButton_Callback(hObject, eventdata, handles)</a>
0323 <span class="comment">% hObject    handle to PlotDAVButton (see GCBO)</span>
0324 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0325 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0326 
0327 <span class="comment">%Plot the DAV data</span>
0328 msgbox(<span class="string">'Plotting Vectors...Please be patient'</span>,<span class="string">'VMT Status'</span>,<span class="string">'help'</span>,<span class="string">'replace'</span>);
0329 VMT_PlotDAVvectors(handles.VelOut(handles.goodrows,1),handles.VelOut(handles.goodrows,2),handles.VelOut(handles.goodrows,4),handles.VelOut(handles.goodrows,5),handles.Ascale,handles.Vspace,handles.units)
0330 msgbox(<span class="string">'Plotting Complete'</span>,<span class="string">'VMT Status'</span>,<span class="string">'help'</span>,<span class="string">'replace'</span>);
0331 
0332 
0333 <a name="_sub19" href="#_subfunctions" class="code">function edit5_Callback(hObject, eventdata, handles)</a>
0334 <span class="comment">% hObject    handle to edit5 (see GCBO)</span>
0335 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0336 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0337 
0338 <span class="comment">% Hints: get(hObject,'String') returns contents of edit5 as text</span>
0339 <span class="comment">%        str2double(get(hObject,'String')) returns contents of edit5 as a double</span>
0340 
0341 handles.Vspace = str2double(get(hObject,<span class="string">'String'</span>));
0342 guidata(hObject,handles)
0343 
0344 
0345 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0346 <a name="_sub20" href="#_subfunctions" class="code">function edit5_CreateFcn(hObject, eventdata, handles)</a>
0347 <span class="comment">% hObject    handle to edit5 (see GCBO)</span>
0348 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0349 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0350 
0351 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0352 <span class="comment">%       See ISPC and COMPUTER.</span>
0353 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0354     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0355 <span class="keyword">end</span>
0356 
0357 
0358 
0359 <a name="_sub21" href="#_subfunctions" class="code">function tav_editbox_Callback(hObject, eventdata, handles)</a>
0360 <span class="comment">% hObject    handle to tav_editbox (see GCBO)</span>
0361 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0362 <span class="comment">% handles    structure with handles and user data (see GUIDATA)</span>
0363 
0364 <span class="comment">% Hints: get(hObject,'String') returns contents of tav_editbox as text</span>
0365 <span class="comment">%        str2double(get(hObject,'String')) returns contents of tav_editbox as a double</span>
0366 handles.TAV = str2double(get(hObject,<span class="string">'String'</span>));
0367 guidata(hObject,handles)
0368 
0369 
0370 <span class="comment">% --- Executes during object creation, after setting all properties.</span>
0371 <a name="_sub22" href="#_subfunctions" class="code">function tav_editbox_CreateFcn(hObject, eventdata, handles)</a>
0372 <span class="comment">% hObject    handle to tav_editbox (see GCBO)</span>
0373 <span class="comment">% eventdata  reserved - to be defined in a future version of MATLAB</span>
0374 <span class="comment">% handles    empty - handles not created until after all CreateFcns called</span>
0375 
0376 <span class="comment">% Hint: edit controls usually have a white background on Windows.</span>
0377 <span class="comment">%       See ISPC and COMPUTER.</span>
0378 <span class="keyword">if</span> ispc &amp;&amp; isequal(get(hObject,<span class="string">'BackgroundColor'</span>), get(0,<span class="string">'defaultUicontrolBackgroundColor'</span>))
0379     set(hObject,<span class="string">'BackgroundColor'</span>,<span class="string">'white'</span>);
0380 <span class="keyword">end</span></pre></div>
<hr><address>Generated on Tue 30-Apr-2013 10:18:12 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>